package model.login;

import empty.users.User;
import unit.DbTool;

import java.sql.SQLException;
import java.util.List;

public class LoginModel {
    public List<Object[]> selectUser(User user) throws SQLException {
        String sql = "select * from users where name=? and pwd=?";
        return DbTool.DQL(sql, user.getName(), user.getPwd());
    }
}
